package com.xinxin.o2o.service;

import com.xinxin.o2o.dto.HeadLineExecution;
import com.xinxin.o2o.model.HeadLine;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author ShiXinXin
 * @date 2019-09-16 0:25
 */
@Service
public interface HeadLineService {

    /**
     * 根据查询条件返回头条列表
     *
     * @param headLineCondition 查询条件
     * @return 头条列表
     */
    List<HeadLine> getHeadLineList(HeadLine headLineCondition);

    /**
     * @param headLine
     * @param thumbnail
     * @return
     */
    HeadLineExecution addHeadLine(HeadLine headLine,
                                  MultipartFile thumbnail);

    /**
     * @param headLine
     * @param thumbnail
     * @return
     */
    HeadLineExecution modifyHeadLine(HeadLine headLine,
                                     MultipartFile thumbnail);

    /**
     * @param headLineId
     * @return
     */
    HeadLineExecution removeHeadLine(long headLineId);

    /**
     * @param headLineIdList
     * @return
     */
    HeadLineExecution removeHeadLineList(List<Long> headLineIdList);
}
